// 引入同名 model
var model = require(__filename.replace(/controller/, 'model'))
module.exports = {
  async index(req: any, res: any) {
    let data = await model.getInfo()
    res.send({ data })
  }
}